package ru.urfc.portal.model.accounting;

import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.MappedSuperclass;
import javax.xml.bind.annotation.XmlRootElement;

import ru.urfc.portal.model.SpectrObject;

@MappedSuperclass
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
@XmlRootElement(name = "client-details")
public class ContragentUpdate extends SpectrObject {
	public String phone;
	public String fax;
	public String email;
	public String postalZip;
	public String postalCity;
	public String postalAddress;

	public ContragentUpdate() {
	}

	public ContragentUpdate(Long id, String phone, String fax, String email,
			String postalZip, String postalCity, String postalAddress) {
		super(id);
		this.phone = phone;
		this.fax = fax;
		this.email = email;
		this.postalZip = postalZip;
		this.postalCity = postalCity;
		this.postalAddress = postalAddress;
	}

	public ContragentUpdate(Long id) {
		super(id);
	}
	
}
